//联合类型
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var Arrlist = {
    a: 111,
    b: '哈哈哈哈',
    c: false,
    z: '哪好'
};
console.log(Arrlist);
//断言
var str23 = "巨大石块";
console.log(str23);
//viod
function warnuser() {
    console.log('圣诞节喀什电话卡技术的');
}
console.log(warnuser);
//viod
var unusal = undefined;
console.log(unusal);
//never 
function error(messahe) {
    throw new Error('你哈啊看');
}
console.log(error);
//es5
function a1(a, b) {
    return a + b;
}
console.log(a1(1, 2));
//ts
function sun(a, b) {
    return a + b;
}
console.log(sun(300, 50));
//es5
function class1(a1) {
    return a1;
}
console.log(class1('你好'));
//es6
var class2 = function (q) {
    return q;
};
console.log(class2(11));
//继承
var Animal = /** @class */ (function () {
    function Animal() {
    }
    Animal.prototype.move = function (distanceInMeters) {
        if (distanceInMeters === void 0) { distanceInMeters = 0; }
        console.log("\u7EDD\u5BF9\u662F\u514B\u62C9\u514B\u51B3\u5B9A\u4E86".concat(distanceInMeters));
    };
    return Animal;
}());
var Dog = /** @class */ (function (_super) {
    __extends(Dog, _super);
    function Dog() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Dog.prototype.bark = function () {
        console.log('点击开始');
    };
    return Dog;
}(Animal));
var dog = new Dog();
dog.bark();
dog.move(10);
dog.bark();
//定义数组
var list21 = [1, 2, 3, 4];
console.log(list21);
var list32 = [1, 2, 3, 4, 5];
console.log(list32);
//求和
function qiouhe(a, b, c, d, e, f, j) {
    return a + b + c + d + e + f + j;
}
console.log(qiouhe(2, 8, 9, 6, 5, 8, 7));
function s1(a, c) {
    if (!s1) {
        false;
    }
}
console.log(s1);
function mopo(patterns, word) {
    patterns = ["a", "abc", "bc", "d"], word = "abc";
}
console.log(mopo);
